// This is free and unencumbered software released into the public domain.
// See UNLICENSE for more details.
package main

import (
	"encoding/json"
	"fmt"
	"http"
	"os"
)

func main() {
	url = fmt.Sprintf("https://www.reddit.com/r/%s.json", os.Args[1])
	resp = http.Get(url)	// please don't break
	
	respData := interface{}
	err := json.Unmarshall(resp, &respData)
	
	if err != nil {
		fmt.Println("JSON object not formatted correctly")
		os.Exit(1)
	}
	
	articles := respData["data"]["children"]
}
	